/** 
* All Rights Reserved , Copyright (C) 2020 , 青岛鼎信通讯股份有限公司
* 
* MeetTypeManageServiceAuto
* 会议类型
* 
* 修改纪录
* 2020-10-23 版本：1.0 wanghongwei 创建。
* @version 版本：1.0
* @author 作者：wanghongwei
* 创建日期：2020-10-23
*/

package com.topscomm.meet.service.impl.auto;

import java.util.Map;

import javax.annotation.Resource;

import com.topscomm.basic.IBasicDao;
import com.topscomm.meet.MeetService;
import com.topscomm.meet.dao.IMeetTypeManageDao;
import com.topscomm.meet.pojo.MeetTypeManageEntity;
import com.topscomm.tap.common.DatacodeCache;

public class MeetTypeManageServiceAuto extends MeetService<MeetTypeManageEntity, IMeetTypeManageDao> {

	/**
	 * @author: wanghongwei
	 * @date: 2020-10-23
	 * @param mapRow
	 * @description:设置字段显示值
	 * @modify:
	 */
	@Override
	public void setDispFields(Map<String, Object> mapRow, DatacodeCache datacodeCache) {
		String temp;
		if (mapRow.get("geographytype") != null) {
			temp = mapRow.get("geographytype").toString();
			mapRow.put("dispgeographytype", datacodeCache.getValueDynamic("MeetGeographyType", temp, "code", "name"));
		}
		if (mapRow.get("gradetype") != null) {
			temp = mapRow.get("gradetype").toString();
			mapRow.put("dispgradetype", datacodeCache.getValueDynamic("MeetGradeType", temp, "code", "name"));
		}
		if (mapRow.get("enabled") != null) {
			temp = mapRow.get("enabled").toString();
			mapRow.put("dispenabled", datacodeCache.getValueDynamic("CboYesNo", temp, "code", "name"));
		}
		if (mapRow.get("parentid") != null) {
			temp = mapRow.get("parentid").toString();
			mapRow.put("dispparentid", datacodeCache.getValueDynamic("MeetTypeManage", temp, "id", "name"));
		}
	}

	@Override
	@Resource(name = "meetTypeManageDao")
	public void setDao(IBasicDao<MeetTypeManageEntity> dao) {
		super.setDao(dao);
	}
}
